bin_PROGRAMS = iperf

LIBCOMPAT_LDADDS = @STRIP_BEGIN@ \
		   $(top_builddir)/compat/libcompat.a \
		   @STRIP_END@

AM_CPPFLAGS = @STRIP_BEGIN@ \
	      -I$(top_srcdir)/include \
	      -I$(top_builddir)/include \
	      @STRIP_END@

if DEBUG
AM_CFLAGS = -Wall -g -O0 -DDEBUG
AM_CXXFLAGS = -Wall -g -O0 -DDEBUG
else
AM_CFLAGS = -Wall -O3
AM_CXXFLAGS = -Wall -O3
endif

iperf_LDFLAGS = @CFLAGS@ @PTHREAD_CFLAGS@ @WEB100_CFLAGS@ @DEFS@

iperf_SOURCES = \
		Client.cpp \
		Extractor.c \
		Launch.cpp \
		List.cpp \
		Listener.cpp \
		Locale.c \
		PerfSocket.cpp \
		ReportCSV.c \
		ReportDefault.c \
		Reporter.c \
		Server.cpp \
		Settings.cpp \
		SocketAddr.c \
		gnu_getopt.c \
		gnu_getopt_long.c \
		main.cpp \
		service.c \
		sockets.c \
		stdio.c \
		tcp_window_size.c \
		debug.c

iperf_LDADD = $(LIBCOMPAT_LDADDS)
